package com.zhanghe.study.design_pattern.visitor_pattern;

/**
 * @author zh
 * @date 2022/10/24 12:00
 */
public class ConcreteElementB extends Element{
    @Override
    public void accept(Visitor visitor) {
        visitor.visitConcreteElementB(this);

    }

    public void operationB(){
        // 业务实现
        System.out.println("B实现");
    }
}
